__author__ = 'suzezhi'

import sys

f=open(sys.argv[1])
for i in f.readlines():
    tmp=i.split()
    print tmp[1]
    print tmp[2]